/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bm.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 *
 * @author LENOVO
 */
public class MessagePrinter {
    public static int log_level = 1; 
    // 1 debug
    
    public static void print(Object message){
        System.out.println("["+ new SimpleDateFormat("yyyy-MM-dd hh:m:ss").format(Calendar.getInstance().getTime()) +"] "+message);
    }
    
    public static void printDateSeparator(){
        MessagePrinter.print("====="+Fungsi.formatTanggalCoreFMSS(Calendar.getInstance().getTime(),null)+"==========================================================================");
    }
    
    public static void printDebug(String message){
        if (log_level >= 1)
            System.out.println("["+ new SimpleDateFormat("yyyy-MM-dd hh:m:ss").format(Calendar.getInstance().getTime()) +"] "+message);
    }
}
